<%@ page language="java" import="java.util.Date" pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://sourceforge.net/projects/jsf-comp" prefix="c" %>
<%@taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@taglib uri="http://java.sun.com/blueprints/ui/14" prefix="ui"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'Bar.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body><br>
  <f:view>
	<h:form>
		<div id="bar">
		<c:chart id="chart1" datasource="#{barchart.connectData}" type="bar" is3d="false" title="XY Chart Demo" xlabel="Student" ylabel="Max. marks" height="300" width="400"></c:chart>  
		<c:chart id="chart2" datasource="#{barchart.pieData}" type="pie" is3d="true" antialias="true" title="Pie Chart Demo" xlabel="X Label" ylabel="Y Label" height="300" width="400"></c:chart>  
</div>
	<!--<input type="text" name="txt">  	
		<ui:popupCalendar id="cal" localeString="zh_CN" value="#{barchart.date}"/>
		<ui:popupCalendar/>

<t:inputCalendar maxlength="10" value="" monthYearRowClass="monthYearRowClass" weekRowClass="weekRowClass" dayCellClass="dayCellClass" currentDayCellClass="currentDayCellClass" popupTodayString="Today is :" popupWeekString="Wk" renderAsPopup="true" renderPopupButtonAsImage="true" popupDateFormat="MM/dd/yyyy" alt="Calendar" title="Calendar"/> -->
<t:inputCalendar monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader" currentDayCellClass="currentDayCell" value="#{barchart.date}"/>
<t:inputCalendar monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader" currentDayCellClass="currentDayCell" value="#{barchart.date}" renderAsPopup="true" popupDateFormat="MM/dd/yyyy" alt="Calendar" title="Calendar" popupTodayString="Today is :" renderPopupButtonAsImage="true"/>		
<t:inputCalendar id="secondOne" monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader" currentDayCellClass="currentDayCell" value="#{barchart.secondDate}" renderAsPopup="true" popupTodayString="Today is :" popupDateFormat="MM/dd/yyyy" popupWeekString="Wk" forceId="true"/>
	</h:form>
  </f:view>  
  </body>
</html>
